package edu.yctc.weblog.controller.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.yctc.weblog.constant.RequestAttributes;
import edu.yctc.weblog.constant.TemplatePath;
import edu.yctc.weblog.controller.LinkController;

@Controller
@RequestMapping(TemplatePath.S + TemplatePath.LINKS)
public class LinkControllerImpl implements LinkController {

    @Override
    @GetMapping(TemplatePath.LINKS_PAGE)
    public String showLink(HttpServletRequest request) {
        request.setAttribute(RequestAttributes.PATH, RequestAttributes.VALUE_LINKS);
        return TemplatePath.ADMIN + TemplatePath.S + TemplatePath.LINKS_PAGE;
    }

}
